#include<iostream>
using namespace std;
const int N=1e3;
string s[N];
int n;
int main()
{
	int i=1;
	while(1)
	{
		cin>>s[i];
		if(s[i]==".")
		break;
        i++;
	}
	if(i>14)
		cout<<s[2]<<" and "<<s[14],puts(" are inviting you to dinner...");
	else if(i>2)
	cout<<s[2]<<" is the only one for you..."<<endl;
	else
	 puts("Momo... No one is for you ...");
	return 0;
}
